package com.pym.Contooller;

import com.pym.Service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class uu {


    @Autowired
    private BookService bookService;
    @RequestMapping("aaa")
    public String name(){


        return "jsp";
    }

    @RequestMapping("aaaa")
    public void  modelAndView(){
        System.out.println(bookService.selectByPrimaryKey(3));

    }
}
